home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2008 September
/
PCWorld_2008-09_cd.bin
/
v cisle
/
sadanastroju
/
wot-20080519-fx.xpi
/
chrome
/
wot.jar
/
skin
/
include
/
sample.js
< prev
next >
Wrap
Text File
|
2007-11-11
|
928b
|
36 lines
var popup_area_height = 214;
var popup_rating_height = 52;
function sample_load()
{
if (!window.location.search) {
return;
}
if (window.location.search.indexOf('negative') >= 0) {
$$('.r5').each(function(item, i) {
item.removeClass('rating');
});
$$('.r4').each(function(item, i) {
item.removeClass('rating');
});
}
if (window.location.search &&
window.location.search.indexOf('popup') >= 0) {
var offset = 0;
var last = 'r0';
[ 'r1', 'r2', 'r4' ].each(function(item, i) {
if (window.location.search.indexOf(item) >= 0) {
$('wot-' + item + '-stack').setStyle('display', 'none');
offset += popup_rating_height;
} else {
last = item;
}
});
$('wot-' + last + '-stack').setStyle('border-bottom', 0);
$('wot-ratings').setStyle('height', (popup_area_height - offset) + 'px');
$('wot-layer').setStyle('display', 'block');
}
}